from django.contrib import admin
from .models import StudyRecord

@admin.register(StudyRecord)
class StudyRecordAdmin(admin.ModelAdmin):
    list_display = ('id', 'user', 'start_time', 'duration', 'category', 'created_at')
    list_filter = ('category', 'created_at')
    search_fields = ('user__username', 'category', 'notes')
    ordering = ('-created_at',)
